Table of Contents

Class: lazyImport .\src\TW\Utils\Import.py

Proxy standing in for something that shouldn't import until later

Example:

            aModule = lazyImport('somePackage.aModule:')

Usage is like importString(), it just doesn't actually import the item until you try to access an attribute of it. Note that you can't use this in situations where you need the real object! That is, if you need a real module (as is needed for a module's __bases__ list), you can't use this. But if all you need is to access attributes of the module, this will do just fine.

Methods   
__getattr__
__init__
  __getattr__ 
__getattr__ ( self,  attr )

  __init__ 
__init__ ( self,  what )


Table of Contents

This document was automatically generated on Tue Mar 05 10:33:49 2002 by HappyDoc version WORKING